package com.zsh.weather.ln.home.ui.care.presenter

import com.zsh.weather.ln.base.BasePresenter
import com.zsh.weather.ln.base.OnLoadDataListener
import com.zsh.weather.ln.bean.CityEntry
import com.zsh.weather.ln.home.ui.care.contract.CareContract
import com.zsh.weather.ln.home.ui.care.model.CareModel

class CardPresenter: BasePresenter<CareContract.View>(),CareContract.Presenter {
    override fun getCitys() {
        CareModel().getCitys(object : OnLoadDataListener{
            override fun <T> success(result: T) {
                getView()!!.getCitys(result as MutableList<CityEntry>)
            }
            override fun fail(error: String) {
            }
        })
    }
}